class dog:
    def __init__(self):
        self.age = '张三'
    def __del__(self):
        print('我已被销毁')

    # def __str__(self):
    #     return '333'

    def get_age(self):
        print('调用get_age方法')



    xingbie = '保密性别'

    @classmethod
    def leifangfa(cls,name):
        cls.name = name
        print(cls.xingbie,cls.name)

# a = dog()
# print(a.xingbie)
dog.xingbie = 'goushi'
print(dog.xingbie)
dog.leifangfa('fsa')
# print(a)



